@extends('layouts.default')

@section('title', '任教学科')

@push('scripts')
<script src="{{ asset('lib/xm-select-v1.2.4/xm-select.js')}}"></script>
<script type="text/javascript" src="{{ asset('lib/ueditor-1.4.3.3/ueditor.config.js').'?'.rand()}}"></script>
<script type="text/javascript" src="{{ asset('lib/ueditor-1.4.3.3/editor_api.js').'?'.rand()}}"></script>
<script type="text/javascript" src="{{ asset('lib/ueditor-1.4.3.3/lang/zh-cn/zh-cn.js')}}"></script>
<script>
    checkboxdata = '';
    layui.use(['layer','form','table','laytpl','laydate','element','laypage','upload'], function(){
        var layer = layui.layer;
        var form = layui.form;
        var table = layui.table;
        var laytpl = layui.laytpl;
        var laydate = layui.laydate;
        var element = layui.element;
        var laypage = layui.laypage;
        var upload = layui.upload;
        var xmDemo;
        var job_apply_id = 0;
        var job_id = "{{request()->get('id',0)}}"; //job_id
        var scale_id = "{{request()->get('scale_id',0)}}";
        var lay_pid = $("#tab-1").children('.layui-this').attr('lay-id');
        var lay_id = $("#tab-2").children('.layui-this').attr('lay-id');


        // var ue = UE.getEditor('container', {
        //             toolbars: [
        //                 ['fullscreen', 'source', 'undo', 'redo', 'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc','fontsize','simpleupload','justifyleft','justifyright','justifycenter','justifyjustify']
        //             ],
        //             //autoHeightEnabled: true,
        //             autoFloatEnabled: false,
        //             initialFrameHeight :350,
        //             initialFrameWidth :'100%',               
        //         });

        laydate.render({
            elem: '#begin_date'
        });

        laydate.render({
            elem: '#end_date'
        });

        laydate.render({
            elem: '#created_at'
        });

        renderSelect(function(){
            if(job_id != 0){
                getJobApplyFirst({'job_id':job_id},function(res){
                    if(res.code == 1){
                        form.val("formTest", {                    
                            'data_version_name': res.data.data_version_name,
                            'name': res.data.name,
                            'join_job_date': res.data.join_job_date.length>0?res.data.join_job_date.slice(0,10):'',
                            'old_level_name': res.data.old_level_name,
                            'engage_date': res.data.engage_date.length>0?res.data.engage_date.slice(0,10):'',
                            'apply_level_name': res.data.apply_level_name,
                            'subject': res.data.subject,
                            'job_id': res.data.job_id,
                            'data_version_id': res.data.data_version_id,
                            'old_level': res.data.old_level,
                            'apply_level': res.data.apply_level,
                            'user_id': res.data.user_id,
                            'education': res.data.education,
                            'education_name': res.data.education_name,
                            'teaching_age': res.data.teaching_age,
                            'engage_age': res.data.engage_age,
                            'id': res.data.id,
                            'zf': res.data.zf,
    
                        });
                     
                        if(res.data.id === undefined){
                            job_apply_id = 0;
                        }else{
                            job_apply_id = res.data.id;
                        }
                        $('#textarea').html(res.data.remark);
                        form.val("formTest2", {                               
                            'training': res.data.training,                                       
                            'scores[1]': res.data.job_apply_details[1].scores, 
                            'scores[2]': res.data.job_apply_details[2].scores, 
                            'scores[3]': res.data.job_apply_details[3].scores, 
                            'scores[4]': res.data.job_apply_details[4].scores, 
                            'comment[1]': res.data.job_apply_details[1].comment, 
                            'comment[2]': res.data.job_apply_details[2].comment, 
                            'comment[3]': res.data.job_apply_details[3].comment, 
                            'comment[4]': res.data.job_apply_details[4].comment, 
                        });
                       
                        $('#xlsp').text(res.data.education_name);
                        $('#jl').text(res.data.teaching_age+'年');
                        $('#prnx').text(res.data.engage_age+'年');
                       
                                            
                    }else{
                        layer.msg(res.msg, {icon: 5,shift : 6,time: 3000},function(){
                            window.history.back();
                        });
                    }
                })
            }
        });

        //下拉框初始化
        async function renderSelect(callback){       
            callback();
        }  

        // Tab1 切换
        element.on('tab(docDemoTabBrief)', function(){
             lay_pid = this.getAttribute('lay-id');
            if(lay_pid == 2){
                get_job_scaleList(lay_id,scale_id);            
            }
        });

        // Tab2 切换
        element.on('tab(docDemoTabBrief2)', function(){
            lay_id = this.getAttribute('lay-id');         
            get_job_scaleList(lay_id,scale_id);                         
        });

        //渲染发展性项目
        function get_job_scaleList(lay_id,scale_id){
            getJobScaleList({'scale_index':lay_id,'scale_id':scale_id,'job_apply_id':job_apply_id},function(res){
                if(res.code == 1){
                    if(lay_id == 1){
                        //获奖情况
                        var getTpl = tab2_1.innerHTML
                        ,view = document.getElementById('view-tab2-1');
                        laytpl(getTpl).render(res.data, function(html){
                        view.innerHTML = html;
                        });
                    }else if(lay_id == 2){
                        //科教研
                        var getTpl = tab2_2.innerHTML
                        ,view = document.getElementById('view-tab2-2');
                        laytpl(getTpl).render(res.data, function(html){
                        view.innerHTML = html;
                        });
                    }else if(lay_id == 4){
                        //兼职工作
                        var getTpl = tab2_4.innerHTML
                        ,view = document.getElementById('view-tab2-4');
                        laytpl(getTpl).render(res.data, function(html){
                        view.innerHTML = html;
                        });
                    }else if(lay_id == 5){
                        //公开教学
                        var getTpl = tab2_5.innerHTML
                        ,view = document.getElementById('view-tab2-5');
                        laytpl(getTpl).render(res.data, function(html){
                        view.innerHTML = html;
                        });
                    }else if(lay_id == 6){
                        //辅导学生获奖
                        var getTpl = tab2_6.innerHTML
                        ,view = document.getElementById('view-tab2-6');
                        laytpl(getTpl).render(res.data, function(html){
                        view.innerHTML = html;
                        });
                    }else if(lay_id == 7){
                        //带教情况
                        var getTpl = tab2_7.innerHTML
                        ,view = document.getElementById('view-tab2-7');
                        laytpl(getTpl).render(res.data, function(html){
                        view.innerHTML = html;
                        });
                    }else if(lay_id == 8){
                        //其他发展项目
                        var getTpl = tab2_8.innerHTML
                        ,view = document.getElementById('view-tab2-8');
                        laytpl(getTpl).render(res.data, function(html){
                        view.innerHTML = html;
                        });
                    }else if(lay_id == 9){
                        //重要工作贡献
                        var getTpl = tab2_9.innerHTML
                        ,view = document.getElementById('view-tab2-9');
                        laytpl(getTpl).render(res.data, function(html){
                        view.innerHTML = html;
                        });
                    }
                }              
            })
        }

        //发展性项目新增
        $(document).on('click','.add-data',function(){
            let data = $.parseJSON($(this).attr('data')); 
            if(data.module == 1){
                layer.msg('暂无对应模块的数据同步', {icon: 5,shift : 6});return false;
            }     
            switch(lay_id){
                case '1':
                    var title = '获奖情况 - 数据同步';
                    var url = "{{route('rating.job.hjqk')}}";
                    break;
                case '2':
                    if(data.scale_index == 2){
                        var title = '课题 - 数据同步';
                        var url = "{{route('rating.job.kt')}}";
                    }else if(data.scale_index == 3){
                        var title = '发展或交流 - 数据同步';
                        var url = "{{route('rating.job.fbhjl')}}";
                    }
                    break;
                case '4':
                    var title = '兼职工作 - 数据同步';
                    var url = "{{route('rating.job.jzgz')}}";
                    break;
                case '5':
                    if(data.scale_index == 5){
                        var title = '公开教学 - 数据同步';
                        var url = "{{route('rating.job.gkjx')}}?materials_date="+materials_date;
                    }else if(data.scale_index == 10){
                        var title = '经验交流 - 数据同步';
                        var url = "{{route('rating.job.jyjl')}}?materials_date="+materials_date;
                    }
                    break;
                case '6':
                    var title = '辅导学生奖状 - 数据同步';
                    var url = "{{route('rating.job.fdxshj')}}";
                    break;
                case '7':
                    var title = '带教情况 - 数据同步';
                    var url = "{{route('rating.job.djqk')}}";
                    break;
                case '8':
                    var title = '其他发展项目 - 数据同步';
                    var url = "{{route('rating.job.jzgz')}}";
                    break;
                case '9':
                    var title = '重要工作贡献 - 数据同步';
                    var url = "{{route('rating.job.zygzgx')}}";
                    break;
                default:
                
            }

            layer.open({
                title :title,
                type: 2, 
                content: url ,
                area: ['1400px', '800px'],
                btn: ['确定', '取消'],
                btnAlign: 'c',
                yes: function(index, layero){
                    //获取子页面选中的值
                    $(document).find('iframe').contents().find('#click-checkbox').click();

                    if(checkboxdata == '' || checkboxdata.data.length == 0){
                        layer.msg('请选择需要同步的数据', {icon: 5,shift : 6});return false;
                    }
                    if(!job_apply_id){
                        layer.msg('请先保存申报理由数据', {icon: 5,shift : 6});return false;
                    }
                    checkboxdata.scale = data;
                    checkboxdata.job_apply_id = job_apply_id;

                    addFzxxm(checkboxdata,function(res){
                        if(res.code == '1'){
                            layer.msg(res.msg,{icon: 6,time: 1000},function(){
                                layer.closeAll();                               
                                get_job_scaleList(lay_id,scale_id);               
                            });
                        }else{
                            layer.msg(res.msg, {icon: 5,shift : 6});
                        }
                    })
                }
                ,btn2: function(index, layero){
                    checkboxdata = '';
                    //return false 开启该代码可禁止点击该按钮关闭
                }
                ,cancel: function(index, layero){ 
                    checkboxdata = '';
                }  
                ,success: function(layero, index){
                    checkboxdata = '';
                }
            }); 
        })

        //发展性项目查看
        $(document).on('click','.see-data',function(){
            let id = $(this).attr('jad-id');
            //console.log(lay_id);       
            switch(lay_id){
                case '1':
                    var url = "{{route('awards.wards.see')}}?id="+id+'&hide=1';
                    break;
                case '2':
                    var scale_index = $(this).attr('scale-index');
                    if(scale_index == 2){
                        var url = "{{route('study.infoView')}}?id="+id+'&hide=1';
                    }else if(scale_index == 3){
                        let lx = $(this).attr('lx');
                        //console.log(lx);return  false;
                        if(lx == 128){
                            var url = "{{route('paper.infoView')}}?id="+id+'&hide=1';
                        }else if(lx == 129){                         
                            var url = "{{route('treatise.infoView')}}?id="+id+'&hide=1';
                        }
                    }
                    break;
                case '4':
                    var url = "{{route('headmaster.infoView')}}?id="+id+'&hide=1';
                    break;
                case '5':
                    var scale_index = $(this).attr('scale-index');
                    if(scale_index == 5){
                        var url = "{{route('open.infoView')}}?id="+id+'&hide=1';
                    }else if(scale_index == 10){
                        var url = "{{route('experience.infoView')}}?id="+id+'&hide=1';
                    }
                    break;
                case '6':
                    var url = "{{route('awards.wards.see')}}?id="+id+'&hide=1';
                    break;
                case '7':
                    var url = "{{route('work.work.see')}}?id="+id+'&hide=1';
                    break;
                case '8':
                    var url = "{{route('awards.wards.see')}}?id="+id+'&hide=1';
                    break;
                case '9':
                   let type = $(this).attr('type');
                   if(type == 1){
                        var url = "{{route('work.work.see')}}?id="+id+'&hide=1';
                   }else if(type == 2){
                        var url = "{{route('work.inwork.see')}}?id="+id+'&hide=1';
                   }else if(type == 3){
                        var url = "{{route('work.outwork.see')}}?id="+id+'&hide=1';
                   }
                    break;
                default:
                
            }
            layer.open({
                title :'查看',
                type: 2, 
                content: url ,
                area: ['1400px', '800px'],
                btn: ['取消'],
                btnAlign: 'c',
            }); 

        })

        //发展性项目删除
        $(document).on('click','.del-data',function(){
            let jab_apply_did = $(this).attr('jad-id');
            let modules_id = $(this).attr('modules-id');
            delFzxxm({'jab_apply_did':jab_apply_did,'modules_id':modules_id},function(res){
                if(res.code == '1'){
                    layer.msg(res.msg,{icon: 6,time: 1000},function(){
                        get_job_scaleList(lay_id,scale_id);               
                    });
                }else{
                    layer.msg(res.msg, {icon: 5,shift : 6});
                }
            })
        })

        //保存 - 提交
        $('#formSave ,#formDemo').click(function(){
            var data1 = form.val("formTest");
            var data2 = form.val("formTest2");
            var status = $(this).attr('status');
            if(status == 1){
                if(!ue.hasContents()){
                    layer.msg('申报理由不能为空', {icon: 5,shift : 6});return false;
                }
                if(data2.training == 2){
                    if($('.comment2').val().length == 0){
                        layer.msg('“十三五”360培训情况说明不能为空', {icon: 5,shift : 6});return false;
                    }
                }
            }
            data2.form = data1;
            data2.status = status;
            addApply(data2,function(res){
                if(res.code == '1'){
                    //console.log(res);return false;
                    layer.msg(res.msg,{icon: 6,time: 1000},function(){
                        if(status == 0){
                            location.reload();
                        }else{
                            window.history.back();
                        }                      
                    });
                }else{
                    layer.msg(res.msg, {icon: 5,shift : 6});
                }
           })
          
            return false;
        })

        //360选择
        form.on('select(training)', function(data){
            if(data.value.length>0){
                if(data.value ==1){
                    $(".scores2").val(3);
                }else{
                    $(".scores2").val(0);
                }
            }else{
                $(".scores2").val(0);
            }   
        });

        
               
    });
  
</script>

<script id="tab2_1" type="text/html">
    <p class="tab2-1-title" >个人获奖情况 <span style="float:right;margin-right: 30px;">参考分数</span></p>
    <div class="layui-collapse2" lay-filter="test">
    @{{#  layui.each(d, function(k, v){ }}
        <div class="layui-colla-item2">
            <h2 class="layui-colla-title">@{{v.title}} 
                
                <span style="float:right" >@{{# if(v.max_score>0){ }} @{{v.min_score}} - @{{v.max_score}}分 @{{# }else{ }} @{{v.min_score}}分 @{{# } }} </span>                
            </h2>
            <div class="layui-colla-content2 layui-show">
            <p>
                @{{# if(v.apply_data.length>0){ }}
                    <table class="layui-table" lay-even="" lay-skin="nob">
                        <colgroup>
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col>
                        </colgroup>
                        <thead>
                            <tr>
                            <th>学年学期</th>
                            <th>类型</th>
                            <th>名称</th>
                            <th>开始日期</th>
                            <th>结束日期</th>
                            <th>级别</th>
                            <th>等级</th>
                            <th>状态</th>
                            <th>创建人</th>
                            <th>操作</th>
                            </tr> 
                        </thead>
                        <tbody style="color:#797979" >
                            @{{#  layui.each(v.apply_data, function(k2, v2){ }}
                            <tr>
                            <td>@{{# if(v2.data_version_name === null){ }} @{{v2.term.title}} @{{# }else{ }} @{{v2.data_version_name}} @{{# } }}</td>
                            <td>@{{# if(v2.category_array.length>0){ }} @{{v2.category_array[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{v2.name}}</td>
                            <td>@{{v2.begin_date}}</td>
                            <td>@{{v2.end_date}}</td>
                            <td>@{{# if(v2.level_array.length>0){ }} @{{v2.level_array[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.grade_array.length>0){ }} @{{v2.grade_array[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.status == 'FILL_IN'){ }} 未提交 @{{# }else if(v2.status == 'REVIEW'){ }} 待审核 @{{# }else if(v2.status == 'REVIEW_FAIL'){ }} 已驳回 @{{# }else if(v2.status == 'PASS'){ }} 审核通过 @{{# }else{ }} @{{# } }}</td>
                            <td>@{{v2.nickname}}</td>
                            <td><span class="tab-see see-data" jad-id="@{{v2.id}}"  >查看</span></td>
                            </tr> 
                            @{{#  }); }}                       
                        </tbody>
                    </table>  
                @{{# } }}              
            </p>
            </div>
        </div>
    @{{#  }); }}
    </div>
</script>
<script id="tab2_2" type="text/html">
    <p class="tab2-1-title" >课题<span style="float:right;margin-right: 30px;">参考分数</span></p>
    <div class="layui-collapse2" lay-filter="test">
    @{{#  layui.each(d[2], function(k, v){ }}
        <div class="layui-colla-item2">
            <h2 class="layui-colla-title">@{{v.title}} 
                
                <span style="float:right" >@{{# if(v.max_score>0){ }} @{{v.min_score}} - @{{v.max_score}}分 @{{# }else{ }} @{{v.min_score}}分 @{{# } }} </span>                
            </h2>
            <div class="layui-colla-content2 layui-show">
            <p>
                @{{# if(v.apply_data.length>0){ }}
                    <table class="layui-table" lay-even="" lay-skin="nob">
                        <colgroup>
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col>
                        </colgroup>
                        <thead>
                            <tr>
                            <th>学年学期</th>
                            <th>课题名称</th>
                            <th>类别</th>
                            <th>开始日期</th>
                            <th>结束日期</th>
                            <th>级别</th>
                            <th>主持人</th>
                            <th>课题阶段</th>
                            <th>状态</th>
                            <th>操作</th>
                            </tr> 
                        </thead>
                        <tbody style="color:#797979" >
                            @{{#  layui.each(v.apply_data, function(k2, v2){ }}
                            <tr>
                            <td>@{{# if(v2.data_version_name === null){ }} @{{v2.term.title}} @{{# }else{ }} @{{v2.data_version_name}} @{{# } }}</td>                          
                            <td>@{{v2.name}}</td>
                            <td>@{{# if(v2.activity_category == 'EW_SUBJECT_RESEARCH_TABLE'){ }} 教育 @{{# }else if(v2.activity_category == 'TEARRESEARCH_SUBJECT_STUDY_TABLE'){ }} 教学 @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{v2.begin_date}}</td>
                            <td>@{{v2.end_date}}</td>
                            <td>@{{# if(v2.level_array.length>0){ }} @{{v2.level_array[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.compere.length>0){ }} @{{v2.compere[0].user.nickname}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.stage == '1'){ }} 申报阶段 @{{# }else if(v2.stage == '2'){ }} 立项阶段 @{{# }else if(v2.stage == '3'){ }} 中期阶段 @{{# }else if(v2.stage == '4'){ }} 结项阶段 @{{# }else{ }} @{{# } }}</td>
                            <td>通过</td>                       
                            <td><span class="tab-see see-data"  scale-index="@{{v.job_apply_details.scale_index}}" jad-id="@{{v2.id}}"  >查看</span></td>
                            </tr> 
                            @{{#  }); }}                       
                        </tbody>
                    </table>  
                @{{# } }}              
            </p>
            </div>
        </div>
    @{{#  }); }}
    </div>
    <br>
    <p class="tab2-1-title" >发表或交流</p>
    <div class="layui-collapse2" lay-filter="test">
    @{{#  layui.each(d[3], function(k, v){ }}
        <div class="layui-colla-item2">
            <h2 class="layui-colla-title">@{{v.title}} 
                
                <span style="float:right" >@{{# if(v.max_score>0){ }} @{{v.min_score}} - @{{v.max_score}}分 @{{# }else{ }} @{{v.min_score}}分 @{{# } }} </span>                
            </h2>
            <div class="layui-colla-content2 layui-show">
            <p>
                @{{# if(v.apply_data.length>0){ }}
                <table class="layui-table" lay-even="" lay-skin="nob">
                        <colgroup>
                            <col width="15%">
                            <col width="15%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col>
                        </colgroup>
                        <thead>
                            <tr>
                            <th>学年学期</th>
                            <th>名称</th>
                            <th>类型</th>
                            <th>发表日期</th>
                            <th>类别</th>
                            <th>级别</th>
                            <th>创建人</th>
                            <th>状态</th>
                            <th>操作</th>
                            </tr> 
                        </thead>
                        <tbody style="color:#797979" >
                            @{{#  layui.each(v.apply_data, function(k2, v2){ }}
                            <tr>
                            <td>@{{# if(v2.data_version_name === null){ }} @{{v2.term.title}} @{{# }else{ }} @{{v2.data_version_name}} @{{# } }}</td>
                            <td>@{{v2.name}}</td>
                            <td>@{{v2.publish_type_set[0]['selectValue'] }}</td>
                            
                            <td>@{{v2.begin_date}}</td>
                            <td>@{{# if(v2.activity_category == 'EW_PAPER_PUBLISH_TABLE'){ }} 教育 @{{# }else if(v2.activity_category == 'TEARRESEARCH_PUBLISH_TABLE'){ }} 教学 @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{v2.level_array.length > 0 ? v2.level_array[0].selectValue : '-' }}</td>
                            <td>@{{v2.creator ? v2.creator.nickname : '-' }}</td>
                            <td>@{{# if(v2.status == 'FILL_IN'){ }} 未提交 @{{# }else if(v2.status == 'REVIEW'){ }} 待审核 @{{# }else if(v2.status == 'REVIEW_FAIL'){ }} 已驳回 @{{# }else if(v2.status == 'PASS'){ }} 审核通过 @{{# }else{ }} @{{# } }}</td>
                            <td><span class="tab-see see-data" lx="@{{v2.publish_type_set[0]['optionId']}}" scale-index="@{{v.job_apply_details.scale_index}}" jad-id="@{{v2.id}}"  >查看</span></td>
                            </tr> 
                            @{{#  }); }}                       
                        </tbody>
                    </table>   
                @{{# } }}              
            </p>
            </div>
        </div>
    @{{#  }); }}
    </div>
</script>
<script id="tab2_4" type="text/html">
    <p class="tab2-1-title" >兼职工作<span style="float:right;margin-right: 30px;">参考分数</span></p>
    <div class="layui-collapse2" lay-filter="test">
    @{{#  layui.each(d, function(k, v){ }}
        <div class="layui-colla-item2">
            <h2 class="layui-colla-title">@{{v.title}} 
                
                <span style="float:right" >@{{# if(v.max_score>0){ }} @{{v.min_score}} - @{{v.max_score}}分 @{{# }else{ }} @{{v.min_score}}分 @{{# } }} </span>                
            </h2>
            <div class="layui-colla-content2 layui-show">
            <p>
            @{{# if(v.job_apply_details !== null && v.job_apply_details.modules_id == '23'){ }}
                    @{{# if(v.apply_data.length>0){ }}
                        <table class="layui-table" lay-even="" lay-skin="nob">
                            <colgroup>
                                <col width="25%">
                                <col width="25%">
                                <col width="25%">
                                <col>
                            </colgroup>
                            <thead>
                                <tr>
                                <th>学年学期</th>
                                <th>职务</th>
                                <th>开始时间</th>
                                <th>结束时间</th>
                                </tr> 
                            </thead>
                            <tbody style="color:#797979" >
                                @{{#  layui.each(v.apply_data, function(k2, v2){ }}
                                <tr>
                                <td>@{{v2.term.title}}</td>
                                <td>@{{# if(v2.title_set.length>0){ }} @{{v2.title_set[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                                <td>@{{v2.begin_date}}</td>
                                <td>@{{v2.end_date}}</td>
                                </tr> 
                                @{{#  }); }}                       
                            </tbody>
                        </table>  
                    @{{# } }} 
                @{{# }else{ }}
                    @{{# if(v.apply_data.length>0){ }}
                        <table class="layui-table" lay-even="" lay-skin="nob">
                            <colgroup>
                                <col width="15%">
                                <col width="15%">
                                <col width="15%">
                                <col width="15%">
                                <col width="15%">
                                <col>
                            </colgroup>
                            <thead>
                                <tr>
                                <th>学年学期</th>
                                <th>班级名称</th>
                                <th>正副情况</th>
                                <th>开始日期</th>
                                <th>结束日期</th>
                                <th>操作</th>
                                </tr> 
                            </thead>
                            <tbody style="color:#797979" >
                                @{{#  layui.each(v.apply_data, function(k2, v2){ }}
                                <tr>
                                <td>@{{v2.term.title}}</td>
                                <td>@{{# if(v2.grade_set.length>0 && v2.class_set.length>0){ }} @{{v2.class_set[0].selectValue}}@{{v2.grade_set[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                                <td>@{{# if(v2.chief_set.length>0){ }} @{{v2.chief_set[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                                <td>@{{v2.begin_date}}</td>
                                <td>@{{v2.end_date}}</td>
                                <td><span class="tab-see see-data" jad-id="@{{v2.id}}"  >查看</span></td>
                                </tr> 
                                @{{#  }); }}                       
                            </tbody>
                        </table>  
                    @{{# } }} 
                @{{# } }}               
            </p>
            </div>
        </div>
    @{{#  }); }}
    </div>
</script>
<script id="tab2_5" type="text/html">
    <p class="tab2-1-title" >公开教学<span style="float:right;margin-right: 30px;">参考分数</span></p>
    <div class="layui-collapse2" lay-filter="test">
    @{{#  layui.each(d[5], function(k, v){ }}
        <div class="layui-colla-item2">
            <h2 class="layui-colla-title">@{{v.title}} 
                
                <span style="float:right" >@{{# if(v.max_score>0){ }} @{{v.min_score}} - @{{v.max_score}}分 @{{# }else{ }} @{{v.min_score}}分 @{{# } }} </span>                
            </h2>
            <div class="layui-colla-content2 layui-show">
            <p>
                @{{# if(v.apply_data.length>0){ }}
                    <table class="layui-table" lay-even="" lay-skin="nob">
                        <colgroup>
                            <col width="12%">
                            <col width="15%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col>
                        </colgroup>
                        <thead>
                            <tr>
                            <th>学年学期</th>
                            <th>课题名称</th>
                            <th>日期</th>
                            <th>学科</th>
                            <th>年级</th>
                            <th>班级</th>
                            <th>创建人</th>
                            <th>创建时间</th>
                            <th>操作</th>
                            </tr> 
                        </thead>
                        <tbody style="color:#797979" >
                            @{{#  layui.each(v.apply_data, function(k2, v2){ }}
                            <tr>
                            <td>@{{# if(v2.data_version_name === null){ }} @{{v2.term.title}} @{{# }else{ }} @{{v2.data_version_name}} @{{# } }}</td>
                            <td>@{{v2.name}}</td>
                            <td>@{{# if(v2.activity_category == 'EW_CLASS_MEETING_TABLE'){ }} @{{v2.date ? v2.date : v2.begin_date}} @{{# }else{ }} @{{v2.begin_date}}  @{{# } }}</td>
                            <td>@{{# if(v2.course_set.length>0){ }} @{{v2.course_set[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.grade_array.length>0){ }} @{{v2.grade_array[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.class_item_set.length>0){ }} @{{v2.class_item_set[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.creator){ }} @{{v2.creator.nickname}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{v2.created_at}}</td>
                            <td><span class="tab-see see-data" scale-index="@{{v.job_apply_details.scale_index}}" jad-id="@{{v2.id}}"  >查看</span></td>
                            </tr> 
                            @{{#  }); }}                       
                        </tbody>
                    </table>  
                @{{# } }}              
            </p>
            </div>
        </div>
    @{{#  }); }}
    </div>
    <br>
    <p class="tab2-1-title" >经验交流</p>
    <div class="layui-collapse2" lay-filter="test">
    @{{#  layui.each(d[10], function(k, v){ }}
        <div class="layui-colla-item2">
            <h2 class="layui-colla-title">@{{v.title}} 
                <button data="@{{JSON.stringify(v)}}" type="button" style="float:right;margin-top: 10px;margin-left: 20px;" class="layui-btn layui-btn-normal layui-btn-xs add-data">新增</button>
                <span style="float:right" >@{{# if(v.max_score>0){ }} @{{v.min_score}} - @{{v.max_score}}分 @{{# }else{ }} @{{v.min_score}}分 @{{# } }} </span>                
            </h2>
            <div class="layui-colla-content2 layui-show">
            <p>
                @{{# if(v.apply_data.length>0){ }}
                    <table class="layui-table" lay-even="" lay-skin="nob">
                        <colgroup>
                            <col width="12%">
                            <col width="15%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col>
                        </colgroup>
                        <thead>
                            <tr>
                            <th>学年学期</th>
                            <th>主题名称</th>
                            <th>类别</th>
                            <th>日期</th>
                            <th>级别</th>
                            <th>学科</th>
                            <th>接待课</th>
                            <th>状态</th>
                            <th>操作</th>
                            </tr> 
                        </thead>
                        <tbody style="color:#797979" >
                            @{{#  layui.each(v.apply_data, function(k2, v2){ }}
                            <tr>
                            <td>@{{# if(v2.data_version_name === null){ }} @{{v2.term.title}} @{{# }else{ }} @{{v2.data_version_name}} @{{# } }}</td>
                            <td>@{{v2.name}}</td>
                            <td>@{{# if(v2.activity_category == 'EW_EXCHANGE_EXPERIENCE_TABLE'){ }} 教育 @{{# }else if(v2.activity_category == 'TEARRESEARCH_EXCHANGE_TABLE'){ }} 教学 @{{# }else{ }}  @{{# } }}</td>
                            
                            <td>@{{v2.begin_date}}</td>
                            <td>@{{# if(v2.level_array.length>0){ }} @{{v2.level_array[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.course_set.length>0){ }} @{{v2.course_set[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.reception_class_set.length>0){ }} @{{v2.reception_class_set[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.status == 'FILL_IN'){ }} 未提交 @{{# }else if(v2.status == 'REVIEW'){ }} 待审核 @{{# }else if(v2.status == 'REVIEW_FAIL'){ }} 已驳回 @{{# }else if(v2.status == 'PASS'){ }} 审核通过 @{{# }else{ }} @{{# } }}</td>
                            <td><span class="tab-see see-data" scale-index="@{{v.job_apply_details.scale_index}}" jad-id="@{{v2.id}}"  >查看</span></td>
                            </tr> 
                            @{{#  }); }}                       
                        </tbody>
                    </table>  
                @{{# } }}              
            </p>
            </div>
        </div>
    @{{#  }); }}
    </div>
</script>
<script id="tab2_6" type="text/html">
    <p class="tab2-1-title" >辅导学生获奖<span style="float:right;margin-right: 30px;">参考分数</span></p>
    <div class="layui-collapse2" lay-filter="test">
    @{{#  layui.each(d, function(k, v){ }}
        <div class="layui-colla-item2">
            <h2 class="layui-colla-title">@{{v.title}} 
                
                <span style="float:right" >@{{# if(v.max_score>0){ }} @{{v.min_score}} - @{{v.max_score}}分 @{{# }else{ }} @{{v.min_score}}分 @{{# } }} </span>                
            </h2>
            <div class="layui-colla-content2 layui-show">
            <p>
                @{{# if(v.apply_data.length>0){ }}
                    <table class="layui-table" lay-even="" lay-skin="nob">
                        <colgroup>
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col>
                        </colgroup>
                        <thead>
                            <tr>
                            <th>学年学期</th>
                            <th>类型</th>
                            <th>名称</th>
                            <th>开始日期</th>
                            <th>结束日期</th>
                            <th>级别</th>
                            <th>等级</th>
                            <th>状态</th>
                            <th>操作</th>
                            </tr> 
                        </thead>
                        <tbody style="color:#797979" >
                            @{{#  layui.each(v.apply_data, function(k2, v2){ }}
                            <tr>
                            <td>@{{# if(v2.data_version_name === null){ }} @{{v2.term.title}} @{{# }else{ }} @{{v2.data_version_name}} @{{# } }}</td>
                            <td>@{{# if(v2.category_array.length>0){ }} @{{v2.category_array[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{v2.name}}</td>
                            <td>@{{v2.begin_date}}</td>
                            <td>@{{v2.end_date}}</td>
                            <td>@{{# if(v2.level_array.length>0){ }} @{{v2.level_array[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.grade_array.length>0){ }} @{{v2.grade_array[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.status == 'FILL_IN'){ }} 未提交 @{{# }else if(v2.status == 'REVIEW'){ }} 待审核 @{{# }else if(v2.status == 'REVIEW_FAIL'){ }} 已驳回 @{{# }else if(v2.status == 'PASS'){ }} 审核通过 @{{# }else{ }} @{{# } }}</td>
                            <td><span class="tab-see see-data" jad-id="@{{v2.id}}"  >查看</span></td>
                            </tr> 
                            @{{#  }); }}                       
                        </tbody>
                    </table>  
                @{{# } }}              
            </p>
            </div>
        </div>
    @{{#  }); }}
    </div>
</script>
<script id="tab2_7" type="text/html">
    <p class="tab2-1-title" >带教情况<span style="float:right;margin-right: 30px;">参考分数</span></p>
    <div class="layui-collapse2" lay-filter="test">
    @{{#  layui.each(d, function(k, v){ }}
        <div class="layui-colla-item2">
            <h2 class="layui-colla-title">@{{v.title}} 
                
                <span style="float:right" >@{{# if(v.max_score>0){ }} @{{v.min_score}} - @{{v.max_score}}分 @{{# }else{ }} @{{v.min_score}}分 @{{# } }} </span>                
            </h2>
            <div class="layui-colla-content2 layui-show">
            <p>
                @{{# if(v.apply_data.length>0){ }}
                    <table class="layui-table" lay-even="" lay-skin="nob">
                        <colgroup>
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col>
                        </colgroup>
                        <thead>
                            <tr>
                            <th>学年学期</th>
                            <th>活动名称</th>
                            <th>开始日期</th>
                            <th>结束日期</th>
                            <th>带教教师</th>
                            <th>所在学校</th>
                            <th>级别</th>
                            <th>状态</th>
                            <th>操作</th>
                            </tr> 
                        </thead>
                        <tbody style="color:#797979" >
                            @{{#  layui.each(v.apply_data, function(k2, v2){ }}
                            <tr>
                            <td>@{{# if(v2.data_version_name === null){ }} @{{v2.term.title}} @{{# }else{ }} @{{v2.data_version_name}} @{{# } }}</td>
                            <td>@{{v2.name}}</td>
                            <td>@{{v2.begin_date}}</td>
                            <td>@{{v2.end_date}}</td>
                            <td>@{{v2.teacher_name}}</td>
                            <td>@{{v2.school_name}}</td>
                            <td>@{{# if(v2.level_array.length>0){ }} @{{v2.level_array[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.status == 'FILL_IN'){ }} 未提交 @{{# }else if(v2.status == 'REVIEW'){ }} 待审核 @{{# }else if(v2.status == 'REVIEW_FAIL'){ }} 已驳回 @{{# }else if(v2.status == 'PASS'){ }} 审核通过 @{{# }else{ }} @{{# } }}</td>
                            <td><span class="tab-see see-data" jad-id="@{{v2.id}}"  >查看</span></td>
                            </tr> 
                            @{{#  }); }}                       
                        </tbody>
                    </table>  
                @{{# } }}              
            </p>
            </div>
        </div>
    @{{#  }); }}
    </div>
</script>
<script id="tab2_8" type="text/html">
    <p class="tab2-1-title" >其他专业发展项目<span style="float:right;margin-right: 30px;">参考分数</span></p>
    <div class="layui-collapse2" lay-filter="test">
    @{{#  layui.each(d, function(k, v){ }}
        <div class="layui-colla-item2">
            <h2 class="layui-colla-title">@{{v.title}} 
                
                <span style="float:right" >@{{# if(v.max_score>0){ }} @{{v.min_score}} - @{{v.max_score}}分 @{{# }else{ }} @{{v.min_score}}分 @{{# } }} </span>                
            </h2>
            <div class="layui-colla-content2 layui-show">
            <p>
            @{{# if(v.apply_data.length>0){ }}
                <table class="layui-table" lay-even="" lay-skin="nob">
                        <colgroup>
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col>
                        </colgroup>
                        <thead>
                            <tr>
                            <th>学年学期</th>
                            <th>类型</th>
                            <th>名称</th>
                            <th>开始日期</th>
                            <th>结束日期</th>
                            <th>级别</th>
                            <th>等级</th>
                            <th>状态</th>
                            <th>操作</th>
                            </tr> 
                        </thead>
                        <tbody style="color:#797979" >
                            @{{#  layui.each(v.apply_data, function(k2, v2){ }}
                            <tr>
                            <td>@{{# if(v2.data_version_name === null){ }} @{{v2.term.title}} @{{# }else{ }} @{{v2.data_version_name}} @{{# } }}</td>
                            <td>@{{# if(v2.category_array.length>0){ }} @{{v2.category_array[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{v2.name}}</td>
                            <td>@{{v2.begin_date}}</td>
                            <td>@{{v2.end_date}}</td>
                            <td>@{{# if(v2.level_array.length>0){ }} @{{v2.level_array[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.grade_array.length>0){ }} @{{v2.grade_array[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.status == 'FILL_IN'){ }} 未提交 @{{# }else if(v2.status == 'REVIEW'){ }} 待审核 @{{# }else if(v2.status == 'REVIEW_FAIL'){ }} 已驳回 @{{# }else if(v2.status == 'PASS'){ }} 审核通过 @{{# }else{ }} @{{# } }}</td>
                            <td><span class="tab-see see-data" jad-id="@{{v2.id}}"  >查看</span></td>
                            </tr> 
                            @{{#  }); }}                       
                        </tbody>
                    </table>  
                @{{# } }}              
            </p>
            </div>
        </div>
    @{{#  }); }}
    </div>
</script>
<script id="tab2_9" type="text/html">
    <p class="tab2-1-title" >参与学校重要工作，并作出贡献<span style="float:right;margin-right: 30px;">参考分数</span></p>
    <div class="layui-collapse2" lay-filter="test">
    @{{#  layui.each(d, function(k, v){ }}
        <div class="layui-colla-item2">
            <h2 class="layui-colla-title">@{{v.title}} 
                
                <span style="float:right" >@{{# if(v.max_score>0){ }} @{{v.min_score}} - @{{v.max_score}}分 @{{# }else{ }} @{{v.min_score}}分 @{{# } }} </span>                
            </h2>
            <div class="layui-colla-content2 layui-show">
            <p>
                @{{# if(!$.isEmptyObject(v.apply_data)){ }}
                    <!--带教情况-->
                    @{{# if( typeof(v.apply_data.IMPORTANTWORK_TEACHING_SITUATION_TABLE) != "undefined" ){ }}
                        <p style="color: #b9b5b5;" >带教情况</p>
                        <table class="layui-table" lay-even="" lay-skin="nob">
                            <colgroup>
                                <col width="10%">
                                <col width="20%">
                                <col width="10%">
                                <col width="10%">
                                <col width="10%">
                                <col width="10%">
                                <col width="10%">
                                <col width="10%">
                                <col>
                            </colgroup>
                            <thead>
                                <tr>
                                <th>学年学期</th>
                                <th>活动名称</th>
                                <th>开始日期</th>
                                <th>结束日期</th>
                                <th>带教教师</th>
                                <th>所在学校</th>
                                <th>级别</th>
                                <th>状态</th>
                                <th>操作</th>
                                </tr> 
                            </thead>
                            <tbody style="color:#797979" >
                                @{{#  layui.each(v.apply_data.IMPORTANTWORK_TEACHING_SITUATION_TABLE, function(k2, v2){ }}
                                <tr>
                                <td>@{{# if(v2.data_version_name === null){ }} @{{v2.term.title}} @{{# }else{ }} @{{v2.data_version_name}} @{{# } }}</td>
                                <td>@{{v2.name}}</td>
                                <td>@{{v2.begin_date}}</td>
                                <td>@{{v2.end_date}}</td>
                                <td>@{{v2.teacher_name}}</td>
                                <td>@{{v2.school_name}}</td>
                                <td>@{{# if(v2.level_array.length>0){ }} @{{v2.level_array[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                                <td>@{{# if(v2.status == 'FILL_IN'){ }} 未提交 @{{# }else if(v2.status == 'REVIEW'){ }} 待审核 @{{# }else if(v2.status == 'REVIEW_FAIL'){ }} 已驳回 @{{# }else if(v2.status == 'PASS'){ }} 审核通过 @{{# }else{ }} @{{# } }}</td>
                                <td><span class="tab-see see-data" jad-id="@{{v2.id}}" type="1" >查看</span></td>
                                </tr> 
                                @{{#  }); }}                       
                            </tbody>
                        </table>  
                    @{{# } }}
                    <!--校内工作-->
                    @{{# if( typeof(v.apply_data.IMPORTANTWORK_IN_SCHOOL_TABLE) != "undefined" ){ }}
                        <p style="color: #b9b5b5;">校内工作</p>
                        <table class="layui-table" lay-even="" lay-skin="nob">
                            <colgroup>
                                <col width="10%">
                                <col width="20%">
                                <col width="10%">
                                <col width="10%">
                                <col width="10%">
                                <col width="10%">
                                <col width="20%">
                                <col>
                            </colgroup>
                            <thead>
                                <tr>
                                <th>学年学期</th>
                                <th>学校重要工作</th>
                                <th>日期</th>
                                <th>主持人</th>
                                <th>参与人</th>
                                <th>状态</th>
                                <th>创建人</th>
                                <th>操作</th>
                                </tr> 
                            </thead>
                            <tbody style="color:#797979" >
                                @{{#  layui.each(v.apply_data.IMPORTANTWORK_IN_SCHOOL_TABLE, function(k2, v2){ }}
                                <tr>
                                <td>@{{# if(v2.data_version_name === null){ }} @{{v2.term.title}} @{{# }else{ }} @{{v2.data_version_name}} @{{# } }}</td>
                                <td>@{{v2.name}}</td>
                                <td>@{{v2.date}}</td>
                                <td>@{{v2.compere}}</td>
                                <td>@{{v2.participants.length}}</td>                             
                                <td>@{{# if(v2.status == 'FILL_IN'){ }} 未提交 @{{# }else if(v2.status == 'REVIEW'){ }} 待审核 @{{# }else if(v2.status == 'REVIEW_FAIL'){ }} 已驳回 @{{# }else if(v2.status == 'PASS'){ }} 审核通过 @{{# }else{ }} @{{# } }}</td>
                                <td>@{{v2.nickname}}</td>
                                <td><span class="tab-see see-data" jad-id="@{{v2.id}}" type="2" >查看</span></td>
                                </tr> 
                                @{{#  }); }}                       
                            </tbody>
                        </table>  
                    @{{# } }}
                    <!--校外工作-->
                    @{{# if( typeof(v.apply_data.IMPORTANTWORK_OUT_SCHOOL_TABLE) != "undefined" ){ }}
                        <p style="color: #b9b5b5;">校外工作</p>
                        <table class="layui-table" lay-even="" lay-skin="nob">
                            <colgroup>
                                <col width="10%">
                                <col width="20%">
                                <col width="10%">
                                <col width="10%">
                                <col width="10%">
                                <col width="10%">
                                <col width="20%">
                                <col>
                            </colgroup>
                            <thead>
                                <tr>
                                <th>学年学期</th>
                                <th>工作内容摘要</th>
                                <th>日期</th>
                                <th>主持人</th>
                                <th>参与人</th>
                                <th>状态</th>
                                <th>创建人</th>
                                <th>操作</th>
                                </tr> 
                            </thead>
                            <tbody style="color:#797979" >
                                @{{#  layui.each(v.apply_data.IMPORTANTWORK_OUT_SCHOOL_TABLE, function(k2, v2){ }}
                                <tr>
                                <td>@{{# if(v2.data_version_name === null){ }} @{{v2.term.title}} @{{# }else{ }} @{{v2.data_version_name}} @{{# } }}</td>
                                <td>@{{v2.name}}</td>
                                <td>@{{v2.date}}</td>
                                <td>@{{v2.compere}}</td>
                                <td>@{{v2.participants.length}}</td>                             
                                <td>@{{# if(v2.status == 'FILL_IN'){ }} 未提交 @{{# }else if(v2.status == 'REVIEW'){ }} 待审核 @{{# }else if(v2.status == 'REVIEW_FAIL'){ }} 已驳回 @{{# }else if(v2.status == 'PASS'){ }} 审核通过 @{{# }else{ }} @{{# } }}</td>
                                <td>@{{v2.nickname}}</td>
                                <td><span class="tab-see see-data" jad-id="@{{v2.id}}" type="3" >查看</span></td>
                                </tr> 
                                @{{#  }); }}                       
                            </tbody>
                        </table>  
                    @{{# } }}

                @{{# } }}              
            </p>
            </div>
        </div>
    @{{#  }); }}
    </div>
</script>
@endpush

@section('content')
<style>
    .opt-panel{padding: 20px;}
    .panel-title h3{font-weight: 800;margin-bottom: 20px;}
    #add-form{padding: 20px 5px;}
    .opt-area{display: flex;flex-direction: row-reverse;padding: 10px 20px;margin-bottom: 20px;}
    .opt-area button{margin-left: 10px;}
    .layui-colla-content{padding: 10px 15px !important;}
    .tab-see{color: #2d8cf0;cursor: pointer;}
    .layui-table[lay-even] tr:nth-child(2n) {background-color: #ffffff !important;}
    .layui-colla-title{background-color: #fff;}
    .layui-collapse2{border:1px #eee solid;padding-top: 10px;}
    .layui-colla-content2{padding: 5px 15px !important;}
    .tab2-1-title{
        background-color: #fafafa;
        padding: 10px;
        border-top: 1px #eee solid;
        border-left: 1px #eee solid;
        border-right: 1px #eee solid;
    }
    .layui-colla-item2 h2 span{margin-right: 25px;}
    #textarea{
        overflow-y: hidden;
        height: 310px;
        border: 1px #eee solid;
        border-radius: 4px;
        padding: 20px;
    }
</style>

<div class="layui-row">
    <div class="layui-panel opt-panel">
        <div class="panel-title">
            <h3>基础信息</h3>
        </div>
        <form class="layui-form" action="" lay-filter="formTest">
            <input type="text" name="id" style="display:none" value="" >
            <input type="text" name="job_id" style="display:none" value="" >
            <input type="text" name="data_version_id" style="display:none" value="" >
            <input type="text" name="old_level" style="display:none" value="" >
            <input type="text" name="apply_level" style="display:none" value="" >
            <input type="text" name="user_id" style="display:none" value="" >
            <input type="text" name="education" style="display:none" value="" >
            <input type="text" name="education_name" style="display:none" value="" >
            <input type="text" name="teaching_age" style="display:none" value="" >
            <input type="text" name="engage_age" style="display:none" value="" >
            <div class="layui-row" >
                <div class="layui-form-item" >
                    <div class="layui-inline" style="width: 30%;">
                        <label class="layui-form-label" style="width:130px">学年学期：</label>
                        <div class="layui-input-inline" style="width: 59%;">
                        <input disabled type="text" name="data_version_name" autocomplete="off" class="layui-input">
                        </div>
                    </div>

                    <div class="layui-inline" style="width: 30%;">
                        <label class="layui-form-label" style="width:130px">教师姓名：</label>
                        <div class="layui-input-inline" style="width: 59%;">
                        <input disabled type="text" name="name" autocomplete="off" class="layui-input">
                        </div>
                    </div>

                    <div class="layui-inline" style="width: 30%;">
                        <label class="layui-form-label" style="width:130px" >参加教育工作时间：</label>
                        <div class="layui-input-inline" style="width: 59%;">
                        <input disabled type="text" name="join_job_date" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>

                <div class="layui-form-item" >
                    <div class="layui-inline" style="width: 30%;">
                        <label class="layui-form-label" style="width:130px">原岗位等级：</label>
                        <div class="layui-input-inline" style="width: 59%;">
                        <input disabled type="text" name="old_level_name" autocomplete="off" class="layui-input">
                        </div>
                    </div>

                    <div class="layui-inline" style="width: 30%;">
                        <label class="layui-form-label" style="width:130px">原岗位聘任日期：</label>
                        <div class="layui-input-inline" style="width: 59%;">
                        <input disabled type="text" name="engage_date" autocomplete="off" class="layui-input">
                        </div>
                    </div>

                    <div class="layui-inline" style="width: 30%;">
                        <label class="layui-form-label" style="width:130px" >申报岗位：</label>
                        <div class="layui-input-inline" style="width: 59%;">
                        <input disabled type="text" name="apply_level_name" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>

                <div class="layui-form-item" >
                    <div class="layui-inline" style="width: 30%;">
                        <label class="layui-form-label" style="width:130px">任教学科：</label>
                        <div class="layui-input-inline" style="width: 59%;">
                        <input disabled type="text" name="subject" autocomplete="off" class="layui-input">
                        </div>
                    </div>

                    <div class="layui-inline" style="width: 30%;">
                        <label class="layui-form-label" style="width:130px">总分：</label>
                        <div class="layui-input-inline" style="width: 59%;">
                        <input disabled type="text" name="zf" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>

            </div>
            
            
        </form>
    </div>   
</div>

<div class="layui-row" style="margin-top:10px;margin-bottom: 100px;">
    <div class="layui-panel opt-panel">
        <div class="panel-title">
            <h3>考核内容</h3>
        </div>

        <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
            <ul class="layui-tab-title" id="tab-1">
                <li class="layui-this" lay-id="1">申报理由</li>
                <li lay-id="2">发展性项目</li>
            </ul>

            <div class="layui-tab-content">
            
                <div class="layui-tab-item layui-show">
                    <form class="layui-form" action="" lay-filter="formTest2">
                        <div>
                        <div id="textarea" ></div>

                            <div>
                            <table class="layui-table" lay-skin="line">
                                <colgroup>
                                    <col width="20%">
                                    <col width="20%">
                                    <col width="40%">
                                    <col width="20%">
                                </colgroup>
                                <thead>
                                    <tr>
                                    <th>基础性项目</th>
                                    <th></th>
                                    <th>情况说明</th>
                                    <th>参考分数</th>
                                    </tr> 
                                </thead>
                                <tbody>
                                    <tr>
                                        <td>学历水平</td>
                                        <td id="xlsp" ></td>
                                        <td><input type="text" name="comment[1]" class="layui-input" value=""></td>
                                        <td><input disabled type="text" name="scores[1]"  class="layui-input" value="" ></td>
                                    </tr>
                                    <tr>
                                        <td>“十三五”360培训</td>
                                        <td><select name="training" lay-filter="training" ><option value="" >请选择</option><option value="1" >完成</option><option value="2" >未完成</option></select></td>
                                        <td><input type="text" name="comment[2]" class="layui-input comment2" value=""></td>
                                        <td><input disabled type="text" name="scores[2]"  class="layui-input scores2" value="" ></td>
                                    </tr>
                                    <tr>
                                        <td>教龄</td>
                                        <td id="jl" ></td>
                                        <td><input type="text" name="comment[3]" class="layui-input" value=""></td>
                                        <td><input disabled type="text" name="scores[3]"  class="layui-input" value="" ></td>
                                    </tr>
                                    <tr>
                                        <td>职称聘任年限</td>
                                        <td id="prnx" ></td>
                                        <td><input type="text" name="comment[4]" class="layui-input" value=""></td>
                                        <td><input disabled type="text" name="scores[4]"  class="layui-input" value="" ></td>
                                    </tr>
                                </tbody>
                            </table>
                            </div>

                        </div>
                    </form>
                </div>
        
                <div class="layui-tab-item">
                    <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief2">
                        <ul class="layui-tab-title" id="tab-2">
                            <li class="layui-this" lay-id="1">获奖情况</li>
                            <li lay-id="2">教科研</li>
                            <li lay-id="4">兼职工作</li>
                            <li lay-id="5">公开教学</li>
                            <li lay-id="6">辅导学生获奖</li>
                            <li lay-id="7">带教情况</li>
                            <li lay-id="8">其他发展项目</li>
                            <li lay-id="9">重要工作贡献</li>
                        </ul>
                        <div class="layui-tab-content">
                            <div class="layui-tab-item layui-show" id="view-tab2-1">                               
                            </div>
                            <div class="layui-tab-item" id="view-tab2-2">
                            </div>
                            <div class="layui-tab-item" id="view-tab2-4">
                            </div>
                            <div class="layui-tab-item" id="view-tab2-5">
                            </div>
                            <div class="layui-tab-item" id="view-tab2-6">
                            </div>
                            <div class="layui-tab-item" id="view-tab2-7">
                            </div>
                            <div class="layui-tab-item" id="view-tab2-8">
                            </div>
                            <div class="layui-tab-item" id="view-tab2-9">
                            </div>
                        </div>
                    </div>
                </div>
            </div>           
        </div>

        <div class="layui-row">
            <div class="opt-area">
                <a href="javascript:history.go(-1);" ><button class="layui-btn layui-btn-primary" type="button">返回</button></a>
            </div> 
        </div>
    </div>
</div>
  
@endsection